package com.distributedLock;


import org.springframework.data.redis.core.RedisTemplate;

public class ThreadB extends Thread {
	private MsService service;
	private RedisTemplate<String,Object> redisTemplate;
	private String key;

	public ThreadB(MsService service,RedisTemplate<String,Object> redisTemplate,String key) {
		this.service = service;
		this.redisTemplate=redisTemplate;
		this.key=key;
	}

	@Override
	public void run() {
		service.seckill(redisTemplate, key);
	}
}
